package cn.kimming.mapper;

import cn.kimming.common.pojo.RoomPlan;
import cn.kimming.common.vo.RoomPlanVO;
import com.alibaba.fastjson.JSONObject;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface RoomPlanMapper {
    int insertSelective(RoomPlan record);

    RoomPlan findByTypeIdAndDate(@Param("typeId") Long typeId,@Param("date") Date date);

    List<RoomPlanVO> findVOByFutureDate(String futureDate);

    int updateByFutureDateAndTypeId(RoomPlan record);

    List<JSONObject> getTodayRoomTypeLeft();

    List<JSONObject> showTodayPrice();

}